using PetShop.Web.Entities;

namespace PetShop.Web.Controls
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;


    public partial  class StaticAddress : System.Web.UI.UserControl
	{

		public AddressInfo address = null;

		protected void Page_Load(object sender, System.EventArgs e){

			
			if (!IsPostBack) {

				ShowAddress(this.address);
			}
		}

		public void ShowAddress(AddressInfo address) {
			
			if (address!= null){
			
				
				lblFirstName.Text = address.FirstName;
				lblLastName.Text = address.LastName;
				lblAdr1.Text = address.Address1;
				lblAdr2.Text = address.Address2;
				lblCity.Text = address.City;
				lblState.Text = address.State;
				lblPostalCode.Text = address.Zip;
			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			
			
			
			InitializeComponent();
			base.OnInit(e);
		}
		
		
		
		
		private void InitializeComponent()
		{

		}
		#endregion
	}
}
